
package com.carsite.service;

import java.util.List;
import java.util.Map;

import com.carsite.model.Department;

public interface DepartmentManager extends Manager {
    /**
     * Retrieves all of the departments
     */
    public List getDepartments(Department department);

    /**
     * Gets department's information based on deptId.
     * @param deptId the department's deptId
     * @return department populated department object
     */
    public Department getDepartment(final String deptId);

    /**
     * Saves a department's information
     * @param department the object to be saved
     */
    public void saveDepartment(Department department);

    /**
     * Removes a department from the database by deptId
     * @param deptId the department's deptId
     */
    public void removeDepartment(final String deptId);
    
    public Map getDeptsByBranch(final String branchId);
    public List<Department> getWarehouse();
    
}

